package hellow_grails

import grails.gorm.transactions.Transactional
import org.springframework.transaction.annotation.Propagation

@Transactional(propagation = Propagation.REQUIRES_NEW)
class NoticeService {

    static datasource = 'lookup'

    List<Notice> getNoticeList() {
        Notice.findAll([max:10, sort:"id", order:"desc", offset:100]){
            userId == 105L
        } as List<Notice>
    }

}
